package com.wyj.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyj.pojo.YlrcRoleAuthorities;
import org.apache.ibatis.annotations.Mapper;

/**
* @author mac
* @description 针对表【ylrc_role_authorities】的数据库操作Mapper
* @createDate 2022-11-19 16:06:43
* @Entity generator.domain.YlrcRoleAuthorities
*/
@Mapper
public interface YlrcRoleAuthoritiesMapper extends BaseMapper<YlrcRoleAuthorities> {

    //角色删除后，用户自动失去该角色下的菜单权限；(在对应表当中进行删除roleId)
    int deleteByRoleId(int roleId);
    //菜单删除后，角色及用户自动失去改菜单权限。(在对应表当中进行删除authoritiesId)
    int deleteByAuthoritiesId(int authoritiesId);
}
